package org.ccay.async.dispatcher;

import java.io.Serializable;

import org.ccay.core.dispatcher.IEventArgs;
import org.ccay.core.dispatcher.IEventHandler;

/**
 * 事件参数包
 * 
 * 
 * @since 2012-7-4
 */
public class EventArgsPack<T extends IEventHandler<E>, E extends IEventArgs> implements Serializable {
 
	private static final long serialVersionUID = 53306494364599970L;
	
	private E eventArgs;	
	private boolean ignoreError;
	private Class<T> handlerClass;
	/**
	 * @return the eventArgs
	 */
	public E getEventArgs() {
		return eventArgs;
	}
	/**
	 * @param eventArgs the eventArgs to set
	 */
	public void setEventArgs(E eventArgs) {
		this.eventArgs = eventArgs;
	}
	/**
	 * @return the ignoreError
	 */
	public boolean isIgnoreError() {
		return ignoreError;
	}
	/**
	 * @param ignoreError the ignoreError to set
	 */
	public void setIgnoreError(boolean ignoreError) {
		this.ignoreError = ignoreError;
	}
	/**
	 * @return the handlerClass
	 */
	public Class<T> getHandlerClass() {
		return handlerClass;
	}
	/**
	 * @param handlerClass the handlerClass to set
	 */
	public void setHandlerClass(Class<T> handlerClass) {
		this.handlerClass = handlerClass;
	}
	 
	
}
